package cn.edu.bcu.ls.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.edu.bcu.ls.entity.Course;
import cn.edu.bcu.ls.entity.Section;
import cn.edu.bcu.ls.entity.Work;
import cn.edu.bcu.ls.entity.WorkParams;
import cn.edu.bcu.ls.mapper.WorkMapper;
import cn.edu.bcu.ls.serviceImpl.WorkService;

@Service
public class WorkServiceImpl implements WorkService{

    @Resource
    private WorkMapper workMapper;

    @Override
    public int deleteByPrimaryKey(Integer wId) {
        return workMapper.deleteByPrimaryKey(wId);
    }

    @Override
    public int insert(Work record) {
        return workMapper.insert(record);
    }

    @Override
    public int insertSelective(Work record) {
        return workMapper.insertSelective(record);
    }

    @Override
    public Work selectByPrimaryKey(Integer wId) {
        return workMapper.selectByPrimaryKey(wId);
    }

    @Override
    public int updateByPrimaryKeySelective(Work record) {
        return workMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Work record) {
        return workMapper.updateByPrimaryKey(record);
    }

	@Override
	public List<Course> selectBycIdwId(WorkParams workParams) {
		// TODO Auto-generated method stub
		return workMapper.selectBycIdwId(workParams);
	}

}
